package com.ytz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ytz
 * @since 04-18
 */
@Getter
@Setter
@TableName("order_info")
public class OrderInfo implements Serializable {
    @Override
    public String toString() {
        return "OrderInfo{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", userId=" + userId +
                ", totalFee=" + totalFee +
                ", codeUrl='" + codeUrl + '\'' +
                ", orderStatus='" + orderStatus + '\'' +
                ", createTime=" + createTime +
                '}';
    }

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单标题
     */
    private String title;

    /**
     * 商户订单编号
     */
    private String orderNo;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 订单金额(分)
     */
    private Integer totalFee;

    /**
     * 订单二维码连接
     */
    private String codeUrl;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
